package com.example.demo.Service.Impl;

import com.example.demo.Bean.Coupon;
import com.example.demo.Bean.CouponParameter;
import com.example.demo.Mapper.PayBeforeMapper;
import com.example.demo.Service.PayBeforeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayBeforeServiceImpl implements PayBeforeService {
    @Autowired
    private PayBeforeMapper payBeforeMapper;

    @Override
    public List<Coupon> getAllCoupon(CouponParameter couponParameter) {
        return payBeforeMapper.getAllCoupon(couponParameter);
    }

    @Override
    public Integer getIntegral(String username) {
        return payBeforeMapper.getIntegral(username);
    }
}
